import request from '@/utils/request'

// 查询推荐房源组列表
export function listRecommendGroup(query) {
  return request({
    url: '/recommend/recommendGroup/list',
    method: 'get',
    params: query
  })
}

// 查询推荐房源组详细
export function getRecommendGroup(groupId) {
  return request({
    url: '/recommend/recommendGroup/' + groupId,
    method: 'get'
  })
}

// 新增推荐房源组
export function addRecommendGroup(data) {
  return request({
    url: '/recommend/recommendGroup',
    method: 'post',
    data: data
  })
}

// 修改推荐房源组
export function updateRecommendGroup(data) {
  return request({
    url: '/recommend/recommendGroup',
    method: 'put',
    data: data
  })
}

// 删除推荐房源组
export function delRecommendGroup(groupId) {
  return request({
    url: '/recommend/recommendGroup/' + groupId,
    method: 'delete'
  })
}
